'''
Created on Jun 25, 2013

@author: LuciaWilliams
'''
# A basic vertex class with randomly generated x and y coordinates

import random
import math

class Vertex:
    def __init__(self):
        self.x = random.randint(0, 100)
        self.y = random.randint(0, 100)
        
    def __str__(self):
        return "%s at (%s, %s)" % (self.__class__.__name__, self.x, self.y)
    
    def distance(self, other):
        return math.sqrt(math.pow((self.x - other.x), 2) + math.pow((self.y - other.y), 2))
    